package com.lantian.yjmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lantian.common.utils.PageUtils;
import com.lantian.yjmall.product.entity.BrandEntity;
import com.lantian.yjmall.product.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author lyj
 * @email 945874570@qq.com
 * @date 2020-05-31 15:55:50
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    // 根据前端传的 id 获取name  完整保存实体
    void saveDetail(CategoryBrandRelationEntity categoryBrandRelation);
    // 关联更新Brand
    void updateBrand(Long brandId, String name);
    // 关联更新category
    void updateCategory(Long catId, String name);
    // 根据三级分类id查询关联品牌
    List<BrandEntity> getBrandsByCatId(Long catId);
}

